package cn.bdqn.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.bdqn.dao.CommentMapper;
import cn.bdqn.entity.Comment;
import cn.bdqn.entity.CommentVO;
@Service("commentService")
public class CommentServiceImpl implements CommentService {
	@Autowired
	private CommentMapper commentMapper;
	@Override
	public List<CommentVO> queryAllCommentByComplaintsId(Integer complaintsid) {
		return commentMapper.queryAllCommentByComplaintsId(complaintsid);
	}
	@Override
	public Integer saveComment(Comment comment) {
		return commentMapper.saveComment(comment);
	}
	@Override
	public Integer deleteComment(Integer commentid) {
		return commentMapper.deleteComment(commentid);
	}

}
